Для синхронизации или передаче данных между разными вкладками можно использовать LocalStorage
Во Vue можно даже сделать реактивную обертку.
Но можно гораздо проще и эффективней - через Broadcast Channel API. C помощью него можно создавать канал, постить в него сообщения и слушать сообщения приходящие в этот канал.
// Создаем канал const bc = new BroadcastChannel("share_channel");
// Посылаем сообщение в канал bc.postMessage("Сообщение какое-то");
// Ловим событие в канале bc.onmessage = (event) => { console.log(event); };
Также postMessage можно использовать для связи открытых окон ( login ) с родительским окном - window.opener.postMessage()
Для синхронизации или передаче данных между разными вкладками можно использовать LocalStorage
Во Vue можно даже сделать реактивную обертку.
Но можно гораздо проще и эффективней - через Broadcast Channel API. C помощью него можно создавать канал, постить в него сообщения и слушать сообщения приходящие в этот канал.
// Создаем канал const bc = new BroadcastChannel("share_channel");
// Посылаем сообщение в канал bc.postMessage("Сообщение какое-то");
// Ловим событие в канале bc.onmessage = (event) => { console.log(event); };
Также postMessage можно использовать для связи открытых окон ( login ) с родительским окном - window.opener.postMessage()
Telegram today rolling out an update which brings with it several new features.The update also adds interactive emoji. When you send one of the select animated emoji in chat, you can now tap on it to initiate a full screen animation. The update also adds interactive emoji. When you send one of the select animated emoji in chat, you can now tap on it to initiate a full screen animation. This is then visible to you or anyone else who's also present in chat at the moment. The animations are also accompanied by vibrations. This is then visible to you or anyone else who's also present in chat at the moment. The animations are also accompanied by vibrations.
The S&P 500 slumped 1.8% on Monday and Tuesday, thanks to China Evergrande, the Chinese property company that looks like it is ready to default on its more-than $300 billion in debt. Cries of the next Lehman Brothers—or maybe the next Silverado?—echoed through the canyons of Wall Street as investors prepared for the worst.